//  [9/11/2013 OMEGA] created

#ifndef _DUELASSENAMEGENERATOR_H_
#define _DUELASSENAMEGENERATOR_H_

#include <QString>

class DAssENameGenerator
{
public:
	DAssENameGenerator(const QString& prefix) : mPrefix(prefix), mNext(1) {}

	QString	generate()
	{
		QString n;
		n.setNum(mNext++);
		return n.prepend(mPrefix);
	}
	void	reset()
	{
		mNext = 1;
	}
	void	setNext(int next)
	{
		mNext = next;
	}
	int		getNext()
	{
		return mNext;
	}

protected:
	QString		mPrefix;
	int			mNext;
};


#endif